package com.scgl.zuzhi.service.impl;

import java.util.List;

import com.scgl.zuzhi.domain.ScglUser;
import com.scgl.zuzhi.mapper.ScglUserMapper;
import com.scgl.zuzhi.service.IScglUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class ScglUserServiceImpl implements IScglUserService
{
    @Autowired
    private ScglUserMapper scglUserMapper;

    /**
     * 查询用户
     *
     * @param id 用户主键
     * @return 用户
     */
    @Override
    public ScglUser selectScglUserById(Long id)
    {
        return scglUserMapper.selectScglUserById(id);
    }

    /**
     * 查询用户列表
     *
     * @param scglUser 用户
     * @return 用户
     */
    @Override
    public List<ScglUser> selectScglUserList(ScglUser scglUser)
    {
        return scglUserMapper.selectScglUserList(scglUser);
    }

    /**
     * 新增用户
     *
     * @param scglUser 用户
     * @return 结果
     */
    @Override
    public int insertScglUser(ScglUser scglUser)
    {
        return scglUserMapper.insertScglUser(scglUser);
    }

    /**
     * 修改用户
     *
     * @param scglUser 用户
     * @return 结果
     */
    @Override
    public int updateScglUser(ScglUser scglUser)
    {
        return scglUserMapper.updateScglUser(scglUser);
    }

    /**
     * 批量删除用户
     *
     * @param ids 需要删除的用户主键
     * @return 结果
     */
    @Override
    public int deleteScglUserByIds(Long[] ids)
    {
        return scglUserMapper.deleteScglUserByIds(ids);
    }

    /**
     * 删除用户信息
     *
     * @param id 用户主键
     * @return 结果
     */
    @Override
    public int deleteScglUserById(Long id)
    {
        return scglUserMapper.deleteScglUserById(id);
    }
}
